<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/client/client_person_add.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
<script type="text/javascript">
	$(function(){
		$("#name").change(function(){
			var name=$(this).val().trim();
			$.get(rootPath +"/clientelse/Client_IsExist.shtml?name="+name,function(data){
				if(eval(data)=="false"){
					alert("该客户已存在！");
					$("#name").val('');
				}
			});
		});
	});
</script>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/clientelse/clientelse_addInfo.shtml">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label" >客户名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"  id="name"
							 name="clientFormMap.name" required/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">收货时间</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							 name="clientFormMap.delivery" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">来回里程/KM</label>
					<div class="col-sm-9">
						<input type="text" class="form-control username"
							 name="clientFormMap.legend" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">合同到期日</label>
					<div class="col-sm-9">
						<input type="date" class="form-control" 
							 name="clientFormMap.end_compact"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">调价进度</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" 
							 name="clientFormMap.discount" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">调价确认情况</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" 
							 name="clientFormMap.discount_tolerance" />
					
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">内部公差/±g</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" 
							 name="clientFormMap.actual_tolerance" />
					
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户公差/±g</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" 
							 name="clientFormMap.tolerance" />
					
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">卸货时间/h</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" 
							 name="clientFormMap.unload_time" />
					
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">备注</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" 
							 name="clientFormMap.remake" />
					
					</div>
				</div>
				
			</div>
		<footer class="panel-footer text-right bg-light lter">
				<button type="submit" class="btn btn-success btn-s-xs">确认</button>
		</footer>
	 </section>
	</form>
</body>
</html>